package com.chainyoung.component_tmtrade.ui.mvp.model;


import com.chainyoung.common.appcommon.entity.CommonList;
import com.chainyoung.common.di.scope.ActivityScope;
import com.chainyoung.common.integration.IRepositoryManager;
import com.chainyoung.common.mvp.BaseModel;
import com.chainyoung.common.utils.RxUtils;
import com.chainyoung.component_tmtrade.api.TradeService;
import com.chainyoung.component_tmtrade.bean.Ad;
import com.chainyoung.component_tmtrade.bean.FiatTradeListItem;
import com.chainyoung.component_tmtrade.bean.TradeCurrencyItem;
import com.chainyoung.component_tmtrade.ui.mvp.contract.AboutFiatCurrencyContact;
import com.chainyoung.component_tmtrade.ui.mvp.contract.TradeFiatCurrencyBuyContract;

import java.util.TreeMap;

import javax.inject.Inject;

import io.reactivex.Flowable;

@ActivityScope
public class AboutFiatCurrencyModel extends BaseModel implements AboutFiatCurrencyContact.Model {

    @Inject
    AboutFiatCurrencyModel(IRepositoryManager repositoryManager) {
        super(repositoryManager);

    }

    @Override
    public Flowable<Ad> getFiatCurrencyNotice() {
        return mRepositoryManager.obtainRetrofitService(TradeService.class)
                .getFiatCurrencyNotice()
                .compose(RxUtils.<Ad>handleResult());
    }


}

